import request from '@/utils/request'

// 查询城市编码列表
export function listCityinfo(query) {
  return request({
    url: '/course/cityinfo/list',
    method: 'get',
    params: query
  })
}

// 查询城市编码详细
export function getCityinfo(id) {
  return request({
    url: '/course/cityinfo/view/' + id,
    method: 'get'
  })
}

// 新增城市编码
export function addCityinfo(data) {
  return request({
    url: '/course/cityinfo/add',
    method: 'post',
    data: data
  })
}

// 修改城市编码
export function updateCityinfo(data) {
  return request({
    url: '/course/cityinfo/update',
    method: 'put',
    data: data
  })
}

// 删除城市编码
export function delCityinfo(id) {
  return request({
    url: '/course/cityinfo/delete/' + id,
    method: 'delete'
  })
}
